import request from '@/utils/request'

// 查询胶粉列表
export function listRubberPowder(query) {
  return request({
    url: '/mes/bm/rubberPowder/list',
    method: 'get',
    params: query
  })
}

// 查询胶粉详细
export function getRubberPowder(id) {
  return request({
    url: '/mes/bm/rubberPowder/' + id,
    method: 'get'
  })
}

// 新增胶粉
export function addRubberPowder(data) {
  return request({
    url: '/mes/bm/rubberPowder',
    method: 'post',
    data: data
  })
}

// 修改胶粉
export function updateRubberPowder(data) {
  return request({
    url: '/mes/bm/rubberPowder',
    method: 'put',
    data: data
  })
}

// 删除胶粉
export function delRubberPowder(id) {
  return request({
    url: '/mes/bm/rubberPowder/' + id,
    method: 'delete'
  })
}
